package com.cddx.logistics.mapper;

import com.cddx.logistics.domain.dto.SysAnnouncementQueryDTO;
import com.cddx.logistics.domain.pojo.SysAnnouncement;
import com.cddx.logistics.domain.vo.SysAnnouncementVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysAnnouncementMapper {
    List<SysAnnouncementVO> queryPage(SysAnnouncementQueryDTO sysAnnouncementQueryDTO);

    int delete(Integer id);

    void deleteAll(@Param("ids") List<Integer> ids);

    int insert(SysAnnouncement announcement);
}
